﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities.Auditing;
using JPW.OnlinePaperSubmissionSystem.Authorization.Users;

namespace JPW.OnlinePaperSubmissionSystem.Project
{
    [Table("Manuscripts")]
    public class Manuscript : FullAuditedEntity<long>
    {
        [ForeignKey("ManuscriptStatusID")]
        public virtual ManuscriptStatus ManuscriptStatu { get; set; }
        public virtual long? ManuscriptStatusID { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        public virtual long? UserId { get; set; }

        public virtual string LongTitle { get; set; }

        public virtual string ShortTitle { get; set; }

        public virtual string Summary { get; set; }

        public virtual string KeyWord { get; set; }

        public virtual string ManuscriptDescription { get; set; }

        public virtual string ManuscriptContent { get; set; }

        public virtual DateTime? ContributeTime { get; set; }
        [ForeignKey("ManuscriptTypeID")]
        public virtual ParameterType ManuscriptType { get; set; }
        public virtual long? ManuscriptTypeID { get; set; }
        [ForeignKey("ColumnTypeID")]
        public virtual ParameterType ColumnType { get; set; }
        public virtual long? ColumnTypeID { get; set; }

    }
}


